import config from '@/utils/config'
import { generateRequest } from '@/utils/request'
const { apiUrlPrefix } = config

/** 套餐管理列表 */
export const companionComboListApi = generateRequest(`${apiUrlPrefix}/pcs/companionCombo/list`)

/** 新增套餐管理 */
export const createCompanionComboApi = generateRequest(`${apiUrlPrefix}/pcs/companionCombo`)

/** 套餐管理修改 */
export const updateCompanionComboApi = generateRequest(`${apiUrlPrefix}/pcs/companionCombo/{id}`, 'put')

/** 套餐管理删除 */
export const deleteCompanionComboApi = generateRequest(`${apiUrlPrefix}/pcs/companionCombo/{id}`, 'delete')

/** 套餐管理启用-停用 */
export const enableCompanionComboApi = generateRequest(`${apiUrlPrefix}/pcs/companionCombo/{id}/{enable}`, 'put')

/** 套餐管理详情 */
export const getCompanionComboDetailApi = generateRequest(`${apiUrlPrefix}/pcs/companionCombo/{id}`, 'get')
